Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Querying the outgoing connection IP should not affect the in IP #5572

Conversation

rablador
Copy link
Contributor

@rablador rablador commented Dec 8, 2023

If the connection is slow, the In IP address won't be updated until we are done querying the Out addresses. We should:

  • Be able to immediately show the In address.
  • Not wait for the Out address to be present to show the In address.
  • Be able to show IPv4 without IPv6 being present (i.e. getOutgoingConnectionInfo should not fail if IPv4 succeeded but IPv6 threw).

This change is Reviewable

@rablador rablador requested review from mojganii and buggmagnet and removed request for mojganii December 8, 2023 11:27
@rablador rablador added the iOS Issues related to iOS label Dec 8, 2023
Copy link

linear bot commented Dec 8, 2023

@rablador rablador force-pushed the querying-the-outgoing-connection-ip-should-not-affect-the-in-ios-409 branch from 0030a8e to fc6bc43 Compare December 8, 2023 11:30
Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untitled.mov

Reviewable status: 0 of 3 files reviewed, all discussions resolved

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 3 files at r1, all commit messages.
Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @rablador)


ios/MullvadVPN/View controllers/Tunnel/TunnelControlViewModel.swift line 62 at r1 (raw file):

}

extension TunnelControlViewModel {

We don't need to add an extension here, it's in the same file.

Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @buggmagnet)


ios/MullvadVPN/View controllers/Tunnel/TunnelControlViewModel.swift line 62 at r1 (raw file):

Previously, buggmagnet wrote…

We don't need to add an extension here, it's in the same file.

Just thought it looked neater since it's public and somewhat different in its use. I can revert.

@rablador rablador force-pushed the querying-the-outgoing-connection-ip-should-not-affect-the-in-ios-409 branch from fc6bc43 to 3115ad0 Compare December 8, 2023 14:39
Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@buggmagnet buggmagnet merged commit 4c496be into main Dec 8, 2023
5 checks passed
@buggmagnet buggmagnet deleted the querying-the-outgoing-connection-ip-should-not-affect-the-in-ios-409 branch December 8, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issues related to iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants